package com.situ.controller;
import com.situ.pojo.Emp;
import com.situ.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;
import java.util.Map;

@Controller
public class EmpController {
    @Autowired
    EmpService service;
    @GetMapping("show")
    public String show(Map map) {
        List<Emp> list=service.queryAll();
        map.put("list", list);
        return "show.html";
    }
}
